package top.kaoshanji.ch01.collecting;

/**
 * author kaoshanji
 * ^_^
 * create time 2024/12/5 16:47
 */
public class Person {

    private int id;
    private String name;

    public Person(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return getClass().getName() + "[id=" + id + ", name='" + name + "]";
    }
}
